import service from './index'
import Vue from 'vue'

class HttpServe {
  get(pampasCall, params = {}) {
    return service.get(pampasCall, { params })
  }
  post(pampasCall, params) {
    return service.post(pampasCall, params, {})
  }
  put(pampasCall, params) {
    return service.put(pampasCall, params, {})
  }
  delete(pampasCall, params) {
    return service.delete(pampasCall, params, {})
  }
}
const Http = new HttpServe()
Vue.prototype.$http = Http